
#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H


#include <QPushButton>
#include<QPropertyAnimation>
#include<QTimer>

class myPushButton : public QPushButton
{
    Q_OBJECT
public:    
    explicit myPushButton(QWidget *parent = nullptr);
    explicit myPushButton(const QIcon &icon, const QString &text, QWidget *parent = nullptr);
    explicit myPushButton(QString normalImg,QString pressImg="");
    virtual void zoom1();
    virtual void zoom2();
    virtual void mousePressEvent(QMouseEvent *e);
    virtual void mouseReleaseEvent(QMouseEvent *e);
private:
    QString normalImgPath;
    QString pressImgPath;
signals:

};

#endif // MYPUSHBUTTON_H
